J.P. Morgan interview question

LeetCode medium or hard questions