Salesforce interview question

write a program for height of a binary tree using arrays!!