JPMorganChase Interview Question

Complete a function with the following parameters...