InterviewBit Problems   Deque : Solved