T='helloworld' def solve(N,S): for i in range(N-10,-1,-1): for j in range(10): if S[i+j]!='?' and S[i+j]!=T[j]: break else: res=[] for j in range(N): if i<=j