Added solution to "Critical links" problem