Facebook Hacker Cup 2013 solutions