Added solution to "rainbow" problem