Nth Odd Element

Write a method that returns th nth element of a list. If the index of the element exceeds the list size, then return -1.

public Integer getElement(List<Integer> list, Integer n) {
}