Spending by Category — hard Python for AI problem | Incognition