Given three strings a, b, and c, return the length of the longest subsequence common to all three. The input is JSON {a, b, c}.
Input: JSON {a, b, c}.
Output: Integer — the length of the longest common subsequence of all three.
Input: {"a":"geeks","b":"geeksfor","c":"geeksforgeeks"}
Output: 5
Explanation: 'geeks' is common to all three.Input: {"a":"abcd1e2","b":"bc12ea","c":"bd1ea"}
Output: 3
Explanation: 'b1e' is common.Input: {"a":"","b":"a","c":"b"}
Output: 0
Explanation: One string is empty.0<=|a|,|b|,|c|<=100