Write a function function solution(A); that, given an array A of N integers, returns the smallest positive integer greater than 0 that does not occur in A.
Implement def solution(A):, where A is a list of integers and the return value is an integer. Values may be negative, zero, duplicated, or larger than N; aim for linear time and constant auxiliary space.
def solution(A):