'''
Given an arbitrary array of positive integers, find the smallest missing 
positive integer. Can you do it with O(1) space?

For example, if A = [1, 3, 6, 2, 7] and then you should return 4.
'''

def find_missing_integer(arr):

  