Solutions to Facebook Hacker Cup questions.