Pregunta de entrevista de TikTok

Binary tree represented as an array, do binary tree operations