what’s the problem?
You didn’t increment the variable ‘m’ in the while loop. Also, you are not supposed to print anything except the solution. Also, the size of the input array is 40,000 and you have declared a to be of size 500.
ok. thank you