Prep Swift Topic

Hi guys please I need help with this question, I don’t understand the solution given

Do you know how f(x) = |x| looks like?