Goldman Sachs Interview Question

Write a program to print linked list in reverse order