Expected output if one of the lists is empty?


#1

Can anyone help with the expected output for the below input:
8 22 5 79 5 81 56 20 7
0
0

it shows no output in my case, although while testing it for other scenarios , it worked fine.


#2

just return NULL if any of the list is NULL