Frage im Vorstellungsgespräch bei Qualcomm

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