typeCQueuestruct{inStack[]intoutStack[]int}funcConstructor()CQueue{returnCQueue{}}func(this*CQueue)AppendTail(valueint){this.inStack=append(this.inStack,value)}func(this*CQueue)DeleteHead()int{inStack,outStack:=this.inStack,this.outStackiflen(outStack)==0{iflen(inStack)==0{return-1}forlen(inStack)>0{outStack=append(outStack,inStack[len(inStack)-1])inStack=inStack[:len(inStack)-1]}}res:=outStack[len(outStack)-1]outStack=outStack[:len(outStack)-1]this.inStack=inStackthis.outStack=outStackreturnres}/**
* Your CQueue object will be instantiated and called as such:
* obj := Constructor();
* obj.AppendTail(value);
* param_2 := obj.DeleteHead();
*/