Microsoft Interview Question

How would you reverse an integer without converting it to other data types and complexity continues to increase with different edge cases been asked.