InterviewBit problem7, Lecture 2

Time and Space Analysis