Photon Interview Question

find subset of arrays from main array