# g(f(x)) - (is my working correct?)

No. Your conditions for the composed functions have f, but they should still have x. Consider the intervals $(-\infty, -1), (-1,0), (0,\infty)$ and compose the functions within these intervals (i.e. consider their values here).