British Math Olympiad (BMO) Problem 2009