Common Divisor Reduction Algorithm
Given two integers x and y. In one step, we have to subtract the greatest common divisor of x and y from x and y each till x ⥠1 and y ⥠1. We have to find the minimum number of repetitions of this step. Examples: Input: x = 36, y = 16Output: 4Explanation: GCD of 36 and 16 is 4, so replace 36 and 16