Pergunta de entrevista da empresa WeSquare

Algorithm explanation and construction in technical round.