Input 1: a = [1] b = [2, 3] Output: 3
Input 2: a = [3, 3, 3] b = [3, 3, 3, 3] Output: 1
Input 3: a = [5,2,1,4,6] b = [4,1,5,4,6,7] output : 8
There was an edge case where I got stucked and wasn't able to find that and took a lot of time and despite interviewer warning, I did not able to get the case.