Suppose there's a cycle in where is a symmetric group on a set

What is ?

Is it composition of like this ?

I'm asking this because suppose there's a function

Now, whereas

which are completely two different things.

So what is the meaning of (square of a cycle) in abstract algebra?