Vestmark Interview Question

Write code to place items in an array into a LRU cache