solutions for hackerrank.com problems