Adobe interview question

LRU Cache and Longest Substring without any repeating characters