Pergunta de entrevista da empresa Lucid Software

I was asked one sorting question, counting question and a game design question