Persistent Systems Interview Question

Code to print greatest common divisor.