Almost Matching Substring Pairs

Company: Trilogy_8aug

Difficulty: medium