First Missing Fix Dead Loop

Submission Result: Wrong Answer

Input:	[]
Output:	0
Expected:	1