Pregunta de entrevista de PayPal

Code a function in a function and determine its output given an input