The question reads: From the given pattern, What comes in place of '?'
The answer is (4).
It looks like:
I also answer (4) but I'd like to define the reason in another way.
It appears to be a control structure in the patter, formed by: a 'triangle', a 'square' and a 'S'.
This 3 signs form a triangle where:
Figure number (4) is the only one validated by this pattern. (1) and (3) don't show a 'S' and in particular the (1)'s 'triangle' is not where it were supposed to be. (2) shows two 'squares' and no 'triangle', quite strange.