Solves one of the problems of the day from my algorithms class. The problem is about derangements, which are simply permutations but for one condition: a[i] != i