You have defined the function as
f(t) = [t]
-∏<t<∏
T=2∏
but that is not the example that you show worked out. The example that you show worked out is this one
f(t) = |t|
-∏<t<∏
T=2∏
This difference being that, in the latter case, the function between - π and +π is the absolute value of t; in the original problem statement, as you gave it, [t] is not really a well defined function.
The absolute value function is an even function, so when we proceed to evaluate the coefficients for the Fourier series, the first one works out as
ao = \frac{1}{2π}∫-ππ f(t) dt
= \frac{1}{π}∫0π t dt
=\frac{π}{2}
The others follow in the usual fashion with the cosine multiplication.