[Task] Add solution to the exercise 02

Source codes for the exercise 02 is finalized.