I want to prove that \begin{align} F^{-1} \circ F \circ F^{-1} = F^{-1}\quad\text{and}\quad F\circ F^{-1} \circ F = F\tag{*}\label{star} \end{align} where F is real-valued non-decreasing right continuous function over $\mathbb{R}$ such that $$\lim_{x\rightarrow-\infty}F(x)=0,\quad\lim_{x\rightarrow\infty}F(x)=1,$$ and $F^{-1}$ is the the quantile function is defined as
$$ F^{-1} (p) = \inf\{ x : F(x) \geq p \}. $$
Notice that $F^{-1}(0)=-\infty$, $F^{-1}(1)=\infty$ if and only if $F(x)<1$ for all $x\in\mathbb{R}$, and $F^{-1}(p)\in\mathbb{R}$ for all $0<p<1$
From the definition of $F^{-1}$ and the right continuity of the distribution function $F$, it follows that for any $x\in\mathbb{R}$ and $0<p<1$
$$ F(x)\geq p \quad\text{if and only if}\quad Q(p)\leq x. $$
This in turn implies that $$F(Q(p))\geq p\quad\text{and}\quad Q(F(x))\leq x$$
I've been stuck on this one for a while and don't really know where to start for proving property \eqref{star}. Any help would be appreciated.