we can also get the value 9 by doing n-2 for nsp . why do v have to take 2n-1
hey @Neha1997 let N =5 in first row nsp = 7 You will never get 7 If you do nsp = 2*n-1 ya nsp = n-2