IXL Learning Interview Question

Derangements of a string