Optimal Consumption Rate - Coding problem | OneNoughtOne