I think for the given for loop I would never take value I=n. hence if statement if(i==n) would always give false and the statement key not present wouldn’t execute