Anonymous Content interview question

Print the series,Linked list ,stack question