Hackerrank test reddit. Pass 18-20 solutions, you have the optimal solution.