Paytm Interview Question

Producer consumer problem , implement stack using queue , first missing number some puzzles