dsgsjk's submission of AND Square Subsegments | CodeChef