T flip flop has only one input, and when that input is HIGH the state of the flip flop toggles. And when the T input is LOW, the flip flop retains its state.
Given in the question, the required states (in order) are : 0, 1, 1, 1, 0, 0, 1, 0, 1, 0.
For every toggle in flip flop state, we need T input to be HIGH (or 1), and when the state is same as the previous state the T input should be LOW(or 0).
So, since the first transition is from 0 to 1, it is a toggle so T = 1.
Then from 1 to 1, no toggle, so T = 0.
Continuing in this fashion, we have the following sequence of inputs:
1, 0, 0, 1, 0, 1, 1, 1, 1