class Solution { public List grayCode(int n) { List result = new ArrayList<>(); for(int i=0; i < 1<>1); return result; } }