My solutions to the Facebook Hacker's Cup, in Scala (only finished rounds)