DXC Technology interview question

different types of statements simple programs on strings