Iaroslav Tverdokhlib's submission of Colorful Chain | CodeChef