On a Problem of D. Lackwell from the Theory of Dynamic Programming