Pregunta de entrevista de JPMorganChase

Complete a function with the following parameters...