The idea of homework is to improve your understanding and skills. Having someone else do it for you misses the point, and gives your instructor and anyone else looking at your grades a false idea of your competence.
Try to solve the problem on your own. If you run into problems, come back, post your code, and ask how to solve the specific problem that you are having with your code. You will then find that people are happy to help you.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
I don't know where this came from, but it needs correcting before you start. The terms Class, Int, Public and Void are all incorrectly spelled. The correct forms are class, int, public and void; all lower case. Also the class definition is incorrect. You have Class bit queue, but class names are only one word. You also name the constructor Bitqueue, which may or may not match the correct class name. So there is really a lot to learn before you can venture into trying to solve this question.