Solutions to various problems on hackerrank.com