One test case is showing TLE .Please help me find the error.
Tricky Permutation
@J20APPPP0005
Yes it will get TLE. because you have to use some tricks to avoid generating multiple same strings.
because you are checking if that still already exists, you are getting TLE.