Pergunta de entrevista da empresa Scale

Had to write helper code for their codebase