Software AG interview question

Implement notepad