Nokia interview question

Write a function that returns the GCF of 2 numbers.