[LeetCode 594] Longest Harmonious Subsequence [Java]