Youdao.com Interview Question

Just regular algorithm questions.