If you have one cycle, then you can find the inverse by reversing the cycle. So if \sigma = (1 ~2~5~3), then \sigma^{-1} = (3~5~2~1)
Then if you have a more general form, then you can calculate the inverse by the formula ##(\sigma\tau)^{-1}= \tau^{-1}\sigma^{-1}##.
For example, if you have...