Max Connected Island Size After Replacement

Company: Myntra_20sep

Difficulty: medium