Pergunta de entrevista da empresa way.com

To code based on the give inputs?