Homework 1 (a text editor) of Data Structure Practice course