The Trade Desk Interview Question

Write an N-way set-associative cache in C#, Java, or python