InterviewBit Problems   Queues - Java : Solved