solutions to some of the problems at hackerrank