Java Practice Questions Leetcode Javascript 30