Java Programming Interview Questions Leetcode 75