Microsoft | SSE
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2023-07-18Added By Anonymous
Source: Link
Given 3 large numbers a, b, p. Write a function which will compute (a ** b) % p.
You can make use of the following identity: ( x * y ) % p = ((x % p) * (y % p)) % p**