The logic followed here is : Figures P, Q, R and T are the same and can be obtained by rotating the figure. Also, 3 L shaped lines in the Figure P, Q, R and T are in a consecutive manner but in figure S only 2-2 L shaped line is consecutive. In figure 'S' such a pattern is not followed.