Arrays Series #5- Count Pairs with given sum - Solution Explained in Java