Solutions to the Facebook Hacker Cup problems.