-5 line l=2 to n. / /chain length
So,for l=2 the 6th line for loop will run from i=1 to n-l+1 and for each i and j value of this for loop the 9th line for loop will run from
K=i to j-1
9th line for loop is nested under 6th line for loop and 6th line for loop is nested under 5th line for loop
5--for(l=2 to n)
6--{for(I=1 to n-l+1)
//
9{for(k=i to j-1)
//
}
}