This is the homework of data structure homework.