Pergunta de entrevista da empresa think-cell

Programming test that requires some algorithmic thinking. It has very strict constraints to the types passed to a function.