Konrad Group interview question

First Missing Positive from Leetcode (problem 41, Hard level)