Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can contain duplicates and negative numbers as well.

For example, the input [3, 4, -1, 1] should give 2. The input [1, 2, 0] should give 3.

You can modify the input array in-place.

Plz check my code

a = 1

arr = []

n = input("Enter length of array : ")

for i in range (0,n):

```
arr.append(input())
```

for i in range (0,n):

```
if(arr[i]>0):
if(arr.count(a)==0):
print(a)
break;
else:
a+=1
```