ByteDance interview question

1. LCM/HCF finding, graph search leetcode.