user
Create a program that takes input and creates a list of all possible words that it contains.

pink


assistant
The program should generate the following list of possible words: 

- p
- pi
- pin
- pink