Facebook Hacker Cup 2014 Qualification Round Solutions https://www.facebook.com/hackercup/problems.php?pid=318555664954399&round=598486203541358