Faltec Interview Question

Stock count scenario