PayPal Interview Question

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