Implement a recency cache and min-coins DP | Verkada Interview Question