InterviewBit Problems   Bob and Queries : Solved