Pergunta de entrevista da empresa MangoApps

Coding problem to solve in person interview.