Added solution for Ex-07 2 subtask