Solutions for some hackerrank tasks.