The following program segment is supposed to search an array A consisting of N elements for a value Key and set Found equal to 1 or 0, depending on whethere or not Key is locatted. It contains two errors. Correct them. Assume that the array A and the other variables have already been properly declared. Highlight your changes in yellow highlighter.
Set Index = 0
Set Found = 1
While (Found == 1) AND (Index < N)
If A[Index] == Key Then
Set Found = 0
Set Index = Index + 1
End if
End While