I updated the original code and I have another question here. what I tried is to remove the elements which is both existed in arr_a and arr_b. But I hit below error.. not sure how to fix it.
Error-[IUCV] Invalid use of 'const'
foreach (arr_a[i]) begin
if(arr_a[i] != arr_b[j]) begin