ByteDance interview question

both rounds are some technical quiz and easy coding question