A.front=maxSize B.(rear+1)%maxSize=front C.rear=maxSize D.rear=front
A.top=0 B.top=maxSize C.top=-1
A.n-i B.i C.n-i+1 D.n-i-1