VC Dimension. How to calculate this

I was intrested in calculating this VC Dimension of the hypothesis class in the picture below. I cannot really provide a proof of how to show its VC dim. It would be really helpful if someone can provide insights in the solution of the problem. enter image description here