Convert Gray Code to Decimal

Created with Sketch.