Why am i getting wrong answer?

Please check what is wrong in my code:

@HemantKumar
Can you please send the hacker blocks question link
I’m unable to find it

@HemantKumar
Silly mistake
Line 23
for(int l=k+1;l<n;l++) {
You did
for(int l=k+1;k<n;k++) {

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.