PayPal interview question

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