Maventic interview question

They will give question on string without using inbuilt function