J.P. Morgan interview question

Coding problems: Simple Leetcode problems