getFromTop

fun <E> ArrayDeque<E>.getFromTop(index: Int): E