Adding the detecting permuted strings solution