Here is the default answer.
However, I want to get the result which looks like this
Here is the Mathematica code:
Factor[Subscript[x, 1] Subscript[x, 2] + Subscript[x, 1] Subscript[x, 3] Subscript[x, 4] + Subscript[x, 1] Subscript[x, 3] Subscript[x, 5]]
Is it possible on Mathematica?


Collect[expr, Subscript[x, _]]. I'm not sure how generalizable this is, though. Are there are other expressions for which you want to do this? Without more examples, it is difficult to give you a general solution (though perhaps theHornerFormanswer below does it; I don't know). – march Jun 09 '16 at 16:32