Todo :→
[ ] Count pairs with given sum :
Click here
(use map)
Practice all problems here :
Click here
Approaches :
Product array puzzle O(n)
Remove duplicates O(n)