Vroom interview question

3 Java coding questions from leetcode