JPMorganChase Interview Question

Hackerrank maths and coding tests