JPMorganChase Interview Question

Coding questions, Greedy problem and Array problem on HackerRank