Hint to maximise your score


#1

Guys think hard about edge cases.
@InterviewBit thanks for incorporating really awesome test cases for this trivial problem.