Check For Pair In An Array With a Given Sum | JavaScript Coding Interview Question