JPMorganChase interview question

just some easy code problems