CH4-E3: Convert an array into a tree with the minimal height possible