Stack implementation using queue

Write a program to implement a 3-stacks of size ‘m’ in an array
of size ‘n’ with all the basic operations such as IsEmpty(i),
Push(i), Pop(i), IsFull(i) where ‘i’ denotes the stack number
(1,2,3), m n/3. Stacks are not overlapping each other. Leftmost
stack facing the left direction and other two stacks are facing in
the right direction.

I’m not able to implement 3 stacks