Longest Common Shape After Fusing Neighbours

Company: Cognizant_IITG_31oct

Difficulty: medium