Problem
Return true if some pair of distinct indices has elements that add up to target (same element twice is not allowed).
Examples
hasPairSum([2, 7, 11, 15], 9) -> truehasPairSum([3, 2, 4], 6) -> truehasPairSum([3, 3], 6) -> false
Return true if some pair of distinct indices has elements that add up to target (same element twice is not allowed).
hasPairSum([2, 7, 11, 15], 9) -> truehasPairSum([3, 2, 4], 6) -> truehasPairSum([3, 3], 6) -> false