Added solution for Ex-06 2 subtask