Pregunta de entrevista de Macquarie Group

Technical and Behavioral. Coding challenge in round one