Pregunta de entrevista de way.com

To code based on the give inputs?