JavaScript Algorithm: Solving Greatest Common Divisor with Euclidean Algorithm

https://leetcode.com/problems/greatest-common-divisor-of-strings