ReverseInteger and ZigZagConversion