Pergunta de entrevista da empresa Encircle

boring and very long coding question.