The Trade Desk Interview Question

Design a set-associative cache, which allows the user to override the algorithm.