Missing Number Leetcode Solution Java