Euclidean algorithm for GCD leetcode