Solutions to problems on hackerrank.com