you give 0indexed string text 0indexed string pattern length 2 consist lowercase English lettersYou add pattern0 pattern1 text exactly note character add beginning end textreturn maximum number time pattern occur subsequence modify texta subsequence string derive string delete character change order remain character example 1input text abdcdbc pattern acoutput 4explanationif add pattern0 text1 text2 abadcdbc now number time ac occur subsequence 4some string 4 subsequence ac add character text aabdcdbc abdacdbchowever string abdcadbc abdccdbc abdcdbcc obtainable 3 subsequence ac suboptimalit show possible 4 subsequence ac add characterexample 2input text aabb pattern abOutput 6explanationsome string obtain text 6 subsequence ab aaabb aaabb aabbb Constraints1 textlength 105patternlength 2text pattern consist lowercase english letter