to find the reverse of a number