Question d’entretien chez J.P. Morgan

One easy and one medium leetcode questions.