SpanIdea interview question

IPC