Largest common substring

why it is giving wrong answer
https://ide.codingblocks.com/s/60891

Hi, the link of code you’ve shared is to check whether parentheses are balanced or not and the heading of doubt is largest common substring. Please share the correct name of the question and its corresponding code.

i have updated the link please check it
thank you

Hi, I’ve made some additions to your code, go through it and reply to this thread in case of any queries. You can refer to the code here: https://ide.codingblocks.com/s/60908