Verkada Interview Question

k way merge sort, get intersection