Pergunta de entrevista da empresa Amaris.Ai

Coding question which you can answer in pseudo code to test your logic.