AMD Interview Question

Printing a stream to stdout following this pattern