Konrad Group interview question

First missing postive leetcode question