Paycom interview question

algorithm about gcd