AppFolio interview question

99 Bottles. Write test cases for it. LC Question for string permutation