Lucid Software Interview Question

2 very easy question and then game implementation.