Solutions to challenges from hackerrank.com