Question d’entretien chez Qualcomm

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