Naive solution to find if there is a pair in A [ 0. . N - 1 ] with given sum .
def isPairSum ( A , N , X ) : NEW_LINE INDENT for i in range ( N ) : NEW_LINE INDENT for j in range ( N ) : NEW_LINE DEDENT DEDENT