Pregunta de entrevista de Novopay Solutions

write an algorithm to check for binary tree