Pregunta de entrevista de PayPay

Solve an assignment given some data