code: public E get(final int index) {
          final int sz = size();
          if (index < 0 || index >= sz) {
              throw new NoSuchElementException(
                  String.format("The specified index (%1$d) is outside the available range [0, %2$d)",
                      Integer.valueOf(index), Integer.valueOf(sz)));
          }
  
          final int idx = (start + index) % maxElements;
          return elements[idx];
      }
docs: Returns the element at the specified position in this queue.
  
  @param index the position of the element in the queue
  @return the element at position {@code index}
  @throws NoSuchElementException if the requested position is outside the range [0, size)