Altimetrik Interview Question

implement linked list and reverse it