Photon interview question

find subset of arrays from main array