Longest Subsequence Problem

Leetcode Problem 1143 Given two strings text1 and text2, return the length of their longest common subsequence. It is known as longest subsequence problem. A subsequence of a string is a new string generated from…