The conversation between human and AI assistant.
[|Human|] Write pseudocode to describe the following algorithm:
[|AI|] ```
initialize index to -1
for each i from 0 to length of arr -1 do
    if arr[i] greater than or equal to num then
        index equals i
        break
    end if 
end for
return index
```
[|Human|] 
Write pseudocode to describe the following algorithm: