Some of the test cases are failing to pass

Some of the test cases are failing to pass,

@ashsingh
for pattern also, take input using getline().
in case start_index==-1 you have to print “No String”

Do these changes, your code will get AC.
Please mark the doubt as resolved if you don’t have any further query.