Noesys Software interview question

coding on string