src/main/java/com/leetcode/design/medium/DesignCircularQueue_622.java
public int Rear() {
      if (isEmpty()) {
        return -1;
      }
      return arr[rear];
    }
/** Get the last item from the queue. */
Get the last item from the queue.
Get the last item from the queue .
public int Rear() {
      if (isEmpty()) {
        return -1;
      }
      return arr[rear];
    }
public int Rear ( ) { if ( isEmpty ( ) ) { return - 1 ; } return arr [ rear ] ; }
Get the last item from the queue.
Get the last item from the queue .