KLA interview question

3 coding questions based on string matrix and graphs