Optimal investment policy in a multi-stage problem with bankruptcy and stage-by-stage probability constraints. (3rd October 2022)