Added solution for Ex-08 3 subtask