Solution to 1.19
A function to determine euclids algorithm