Allyis Interview Question

How to reverse an integer, count 1