Suppose one character at a time comes as an input from a string of letters . There is an option either to
1) print the incoming letter or to
2) put the incoming letter onto stack .Also a letter from stack can be popped out at any time and printed .
The total number of distinct words that can be formed out of a string with n distinct letters is ?