Domanda di colloquio di JPMorganChase

Hackerrank question with easy and medium Leetcode problems.