Partiko interview question

How to convert an array into a binary tree