How do you solve Euclidean algorithm?