Algorithm To Reverse A Number