Qualcomm interview question

Let's suppose Modulus operation (%) is not supported by a system. Write a program to implement modulus operation