hackerrank problem solving intermediate questions