find all possible interpretations

http://www.geeksforgeeks.org/find-all-possible-interpretations/