Two functions f:R→R,g:R→R are defined as follows:
f(x)=0 (x rational)1 (x irrational) ,g(x)=−1 (x rational) 0 (x irrational) then |(fog)(π)+(gof)(e)|=
(fog)(π)+(gof)(e)=f[g(π)]+g[f(e)]
=f(0)+g(1)=0−1=−1.