Revolut interview question

Questions around binary trees and leetcode style interview