Increasingly interview question

Test cases