solve_hasharray