ByteDance interview question

Pure algorithm questions involving graph, string matching, etc.