I am doing some research on the enigma machine (specifically on how Rejewski broke the code)

I know the main idea is the use of permutations, but I'm having trouble really understanding what he actually did in order to solve it.

Can anyone enlighten me? Thanks