Solutions for the problems on http://www.hackerrank.com