array queue working on ./solve