Moody's interview question

3 Leetcode easy/medium questions. 3 Multiple choice