[LeetCode 34] Search for a Range [Java]