problem_43 and fixed ns to arr