ReverseInteger.cpp solution