Truein interview question

Josephus Problem and LRU Cache