Added solution to "Capcity" problem