AJC P1 Q7

The function f is defined by $f:x \mapsto e^{|4-x|}, x \in \mathbb{R}, x \le a$.

(i) State the greatest value of $a$ for which $f^{-1}$ exists.

(ii) Define $f^{-1}$ in similar form.