Challenge Information

Title : Common Supersequence
Difficulty : Easy
Solutions : 7
Maximum Score : 50
Completed by You: No
Description :

There are two strings given. By making a string that has subsequence of the given two strings, you have to find the length of the shortest common supersequence formed by the given string.

Write a function solve that have the following parameter(s):
1.) a = string
2.) b = string

Example
Input:
a = doll
b = door
Output:
6

Explanation
The word "dollor" has "doll" and "or" both strings as a subsequence.

Constraints

Judocode