Implement integer division without using division | Amazon