solutions to challenge problems from hackerrank