Wave interview question

write a Sub string program