Editorial code is giving wrong output


#1

Comment body goes here.A : [ 3, 4, 8, 9, 10, 11 ]
B : [ 3, 15, 18, 20, 21, 22 ]
what will be output for this