Oracle Coding Questions Leetcode 150