579. Find Cumulative Salary of an Employee (Hard)