Given two strings a and b, return the length of the shortest string that has both a and b as subsequences. The input is JSON {a, b}.
Input: JSON {a, b}.
Output: Integer — the length of the shortest common supersequence.
Input: {"a":"abac","b":"cab"}
Output: 5
Explanation: Length 5 covers both.Input: {"a":"abc","b":"abc"}
Output: 3
Explanation: Identical strings.Input: {"a":"a","b":""}
Output: 1
Explanation: Just a.0<=|a|,|b|<=1000