Hubdoc interview question

many to many join query