Create GrayCode.cpp

Solution for Gray Code.