Question d’entretien chez Novopay Solutions

write an algorithm to check for binary tree