InterviewBit Problems   Maximum Sum Triplet : Unsolved

About the Maximum Sum Triplet : Unsolved category (1)
Can Someone please help me to find out mistake in logic :| (2)
Incomplete explaination (2)
Wrong output given for the first example (2)
Why it is showing run time error.. Is it correct or not? (2)
Why O(nlogn) solution getting TLE? (1)
TLE for O(nlogn) solution using Sparse Table (1)
Wrong Test Case bpn (1)
Same as Editorial, still giving TLE, what's wrong? (2)