Pergunta de entrevista da empresa Anonymous

solve greatest common divisor + difference set