Feedback for BLDST problem

Problem Link: BLDST Problem - CodeChef
please provide the correct java code.


Question is in correct can you please say the answer for the following test
5 3
10 1 1

you answer is 2 but actually answer is 1 in question you said all m ball are unique in boxes, then how will be the answer is 2

Ai must be smaller than n; Here 10>5, so the test case is wrong.