Pergunta de entrevista da empresa PayPal

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