Pergunta de entrevista da empresa Iodine Software (TX)

Solve this problem using a programming language you have never used before in 1 hour.