next-nth Gets the element at index n of array. If n is negative, the nth element from the end is returned. resources: todos: unit test case