starOut: remove each * and its neighbours
Return a version of the string where every '*' is removed, along with the characters just to its left and right. So "ab*cd" becomes "ad". Step through starOut: it looks at two boxes at a time (a and b). A letter is kept only if neither it nor the box after it is a star. When a star is followed by a letter, i++ inside the loop skips that letter too. The last letter has no box after it, so it gets checked separately at the end.