Solutions to problems on http://hackerrank.com