Bloomberg Interview Question

Word search lc question (medium)