Microsoft Interview Question

nth element from end of linked list and array