Can you tell why my answer is not coming?

your input format is wrong take t then n1 then arr then n2 then arr2 .you were taking n1 n2 consecutively
also new line for every test case
here :


please mark your doubt as resolved :slight_smile: