Problem 50 - faster