Solutions to Facebook Hacker Cup problems.