Pregunta de entrevista de ByteDance

Leetcode typical exercises, very random CS questions