What is the best data structure for NOTEPAD and WORD PROCESSOR

Just for the information...this was asked in trilogy's exam