Facebook Hacker Cup: Problem 1 [Python]