A language with string manipulation facilities uses the following operations
head(s): first character of a string
tail(s): all but exclude the first character of a string
concat(s1, s2): s1s2
For the string "$acbc$" what will be the output of
concat(head(s), head(tail(tail(s))))
- $ac$
- $bc$
- $ab$
- $cc$