rewrite leetcode first missing positive