My solutions for the Facebook Hacker Cup