Repace with sum of greater nodes problem

THIS IS THE LINK TO MY CODE . I AM NOT GETTING THE OUTPUT NODES IN CORRECT ORDER , CAN YOU PLEASE HELP ME.

@ChiragJindal7
chirag ur build bst is not right.
check this article -> https://www.geeksforgeeks.org/sorted-array-to-balanced-bst/