Implement `lcs(a, b)` returning the length of the longest common subsequence of strings `a` and `b`.
+ 1 hidden test run on Submit.
A 2D DP over prefixes gives the LCS length in O(m * n) time.
Run your code to see results.