Added Another Optimized solution to Ambigous Permutation