Solutions to problems on Hackerrank.com