Added solution to problem "crocodiles"