Mobileye Interview Question

write in paper and pen py code for crossword, no optimization (10-15 min total) optimize it (5 min)