ON SUBMITTING TEST CASE SHOWS WRON ANSWER BHUT ON COMPILATION IT GIVES WRIGHT ANSWER

While submitting the problem it shows wrong answer with test case 1 but compilling with the same input on console it gives the right output.

PLEASE IGNORE SPELLING MISTAKES.

hi @imambujsingh08
there are a few mistakes in the code

like u cannot sort the board array
also
the starting point s will be equal to the largest element in the array

please refer to https://ide.codingblocks.com/s/221156