Solutions for problems on hackerrank.com