Pregunta de entrevista de Jupiter Money

Case study was given to solve