Flipkart interview question

K distance sort N-1 elements in an array from 1 to n, find the missing one LRU cache implementation using array, stack/queue, doubly linked list, circular linked list, Hash map