Build balanced tree from array


https://hack.codingblocks.com/app/practice/2/1069/problem
why it give me wrong answer