The Nim hole will go live in approximately 3 days. Why not try and solve it ahead of time?
Gray Code Encoder in Python in chars.