- Using prefix tree
- Scan file line by line and build prefix tree and length dictionary
- Reverse length dictionary and find two longest concatenated words (check for is_word property)
- Look through length dictionary and count all concatenated words (check for is_concatenated property)