Amazon Interview Question

Find the nth element from the last.