Minimum Expense Staircase Traversal - Coding problem | OneNoughtOne