Longest common subseuqence

My code is giving time limit exceded please help me with this.
Question link:: https://practice.geeksforgeeks.org/problems/longest-common-subsequence/0
CODE LINK:: https://ide.codingblocks.com/s/100548

Correct line no 12 of your code : else if(s1[i-1]==s2[j-1])