After a lot of thinking why this particular way to solve this problem would fail

if anyone coud give me any test case for which this would fail, it would be great help.

Problem link : - https://www.codechef.com/problems/AMMEAT

# cook your dish here

for tc in range(int(input())):

```
n,m = map(int,input().split())
li = list(map(int,input().split()))
li.sort(reverse=True)
count = 1
t_balls = 0
if(sum(li)<m):
count=-1
else:
for i in range(n):
t_balls += li[i]
if t_balls >=m:
count = count + i
break
print(count)
```