leetcode: Gray Code