Weekly exercise 11: Inventory dynamics problem with stochastic demand