What if i consider a different base case

like if i consider a base case as for length ==1 i append that character into the base arraylist it would also work right or should i consider for length==0 an empty string is appended