Amazon Interview Question

Implement integer division as it works in Java, without using the division operator.