def first_Missing_Positive(arr, n):
    s = set(arr)
    i = 1
    while i in s:
        i += 1
    return i