i m getting 2 testcases failed… please resolve the problem.
@aditi2512201012019, instead of if(k == n), if(index == n) would come in line 14.