InterviewBit Problems   Lines in a given range : Solved