Doing homework in the last minute, nice and cool!

Okay, basically there is a property aboutfinitesets.

That if you take a surjection it implies a injection and a injection implies a bijection when you map a set into it set.

Thus, basically all you need to determine whether something is a permutation in a finite set is when it is injective or bijective. It is a useful tool to know.