Let $\beta$, and $\alpha = \{x_1,x_2, \cdots,x_{r-1}, x_r\}$, be permutations of a finite set X. Show that $$\beta \circ \alpha \circ \beta^{-1}=(\beta(x_1) \space \beta(x_2) \space \cdots \space \beta(x_{r-1}) \space \beta(x_r)).$$ We haven't formally learned modular arithmetic yet so the teacher gave us the hint to write a function defined as follows, $T(x_i)=x_{i+1}$ if $x_i \neq r$, If $x=i$ then $T(x_i)=x_1$.
Then we consider the $2$ cases being if $x_i \in \beta$ and when $x_i \notin \beta$.
I'm still not completely sure how to procede down either case, any help is appreciated!