LeetCode
Letter Tile Possibilities
Click
here
for an explanation.