Selection sort question

I tried this so many times myself but here output is wrong

here is your corrected code:

2 test cases arent working

please check. only two test cases are working

i corrected your codde and marked where i corrected it.
please see

where is the corrected code? IDE link?


https://ide.codingblocks.com/s/464068?_ga=2.144959284.1403564743.1619814061-277388036.1616803054