The function given to us is :

We want to see which function represents the horizontal compression of f(x) by a factor of 4
We can compress a function horizontally by multiplying the x by a constant number, in this case multiplying x by 4
So horizontal compression of

This matches with the option B =

Hence, your answer (B) is correct.