Create PermCheck.cs

O(N * log(N)) or O(N)