Pregunta de entrevista de Amaris.Ai

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