division of two positive integers

This Question Was Asked By ContextLogic

Implement division of two positive integers without using the division, multiplication, or modulus operators. Return the quotient as an integer, ignoring the remainder.

Write a function solve that have the following parameter(s):
1.) a= an integer
2.) b= an integer

Example
Input:
a= 10
b= 3
Output:
3

Example
Input:
a= 12
b= 5
Output:
2

Constraints
• The value of a and b should be greater than 0 or less than 10000.