text: Return ans + 1 ( Because the given string is also a unique permutation )
code: return ans + 1 ; } public static void main ( String [ ] args ) { String str = " sstt " ; System . out . println ( validPermutations ( str ) ) ; } }