JPMorganChase interview question

only the 2 programming exercises previously explained