Why is third loop used k for loop

i am not getting about why third inner k loop is used for traversal

@abinashkumarray hey abinash this is used to traverse the subarray which is used for printing the subarray’s