just write down all possible s,m,e and t.
t is either on the left side or right side of m.
each case choose either the left part(e = m) or the right part(s = m + 1) of input array.
you can determine which part to choose by your brain or by accident.
dont worry, if you choose part by accident, it is at most 64 tries. 