Added another function for reversing digits