Fedor Popov's submission of Compress all Subsegments | CodeChef