Hackerrank algorithm problem set