To print reverse of a number