Question d’entretien chez JPMorganChase

Gave 2 leetcode problems. One easy and one medium