American Express interview question

Write a function that returns whether an integer is divisible by another integer, without using division or modulus.