difference between odd level nodes and even level nodes && sum of two elements in array