Microsoft interview question

Fill zero matrix Queue and stack problem