Microsoft Interview Question

Fill zero matrix Queue and stack problem