though the answer is correct the code is still not complete ig…
My code
# cook your dish here
T=int(input(""))
for i in range(T):
N,A,B,C=map(int, input().split())
if A+C<N:
print("NO")
else:
if A+C==B:
if B>=N:
print("YES")
elif A+C>N:
if A+C<=B:
print("YES")
else:
print("NO")
Problem Link: CodeChef: Practical coding for everyone