give integer array num return great common divisor small number large number numsthe great common divisor number large positive integer evenly divide number Example 1input num 256910output 2explanationthe small number num 2the large number num 10The great common divisor 2 10 2example 2input num 75683output 1explanationthe small number num 3the large number num 8the great common divisor 3 8 1example 3input num 33output 3explanationthe small number num 3the large number num 3the great common divisor 3 3 3 constraints2 numslength 10001 numsi 1000