Palo Alto Networks interview question

sorting different sorted arrays top k elements