Truein Interview Question

Josephus Problem and LRU Cache