Possible queue solution?

this is the way