Implement LRU and target-sum combinations | Adyen Interview Question