Domanda di colloquio di Motorola Mobility

They asked coding questions regarding trees and array, Medium difficulty