Brute force - N! solution
Brute force - N! solution