JPMorganChase Interview Question

just some easy code problems