added solution to the reverse integer problem