Anonymous interview question

solve greatest common divisor + difference set