Medium
Given two strings text1 and text2, return the length of their longest common subsequence (characters in order, not necessarily contiguous). Return 0 if none.
Input: text1 = "abcde", text2 = "ace" Output: 3
Input: text1 = "abc", text2 = "def" Output: 0