Added solution to problem "cubes"