Having a difficulty in dealing with 0s

what will be the output of 101 ? , do i have to count substring “01” as ‘A’ ? , …
and should i take individual 0 as “” , empty string ,