The Trade Desk interview question

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