A receiver stores the sequence numbers of arriving packets in the array PACKETS = [1, 2, 4, 5, 3]. The pseudocode below models a TCP receiver that outputs only packets delivered in order and buffers the rest.
EXPECTED = 1
loop N from 0 to 4
if PACKETS[N] = EXPECTED then
output PACKETS[N]
EXPECTED = EXPECTED + 1
end if
end loop
What is the output?