Let f(x) be defined on [−2,2] and is given by f(x)={−1,−2≤x≤0x−1,0<x≤2,g(x)=|x|. Then fog(x)+gof(x)=
If f(x) be defined on [-2, 2] and is given by f(x)={−1, −2≤x≤0x−1, 0<x≤2 and g(x)=f(|x|)+|f(x)|. Find g(x).