Explanation:
g(x) is f(x) shifted up by 2 units.
that is simply expressed as
g(x) = f(x) + 2
h(x) if f(x) shifted left by 1 unit.
that is trickier.
h(x) = f(x + 1)
why ?
every result that f(x) had at x+1, is now happening for h(x) at x ("earlier", shifted to the left). so, the function result for f(x+1) is the function result for h(x).
and therefore,
h(x) = f(x + 1)
FYI
a shift to the right by 1 unit would be
i(x) = f(x - 1)
for the same reasons as for the shift to the left, just in the other direction.