Find Greatest Common Divisor of Array

给一个数组, 求里面最大值和最小值的gcd.