FINISH the question 4.

Using string library rather than managing it by array