Databricks interview question

smallest missing positif integer