Navan interview question

Regular algorithm questions, Leetcode easy, medium at most