[LeetCode 89] Gray Code [Java]