One Degree interview question

Write a function that gets the greatest number