answers for hackerrank test