Find duplicate pairs in array. In-depth solution and explanation for LeetCode 442.

Lawn Fungus