JPMorganChase interview question

Complete a function with the following parameters...