https://oj.leetcode.com/problems/gray-code/