Konrad Group Interview Question

First missing postive leetcode question