Write a function to find the longest common subsequence between two strings.
HardProblem Statement
Write a function to find the longest common subsequence between two strings.
Sample Input
abcde, "ace"
Sample Output
ace
Limits
Time: 2s · Memory: 256 MB