Domanda di colloquio di Navan

Regular algorithm questions, Leetcode easy, medium at most