local t = io.read("*n") for i = 1, t do local n, m = io.read("*n", "*n") local z = 0 local f = true for i = 1, n do local a = io.read("*n") if a < z then f = false end z = m - a end print(f and "Yes" or "No") end