DHC interview question

Stock management