Facebook Hacker Cup 2 Round - Card Game Solution