Stack using queue

to get the top of the stack why arent we displaying the value of this.rear