Stefanini interview question

<algorithm> Detail below the output of the algorithm above.