aman agarwal's submission of AND Square Subsegments | CodeChef