Amdocs interview question

Find gcd of given array Matrix rotation