Implement integer division without using division | Amazon Interview Question