sol: https://ide.codingblocks.com/s/415797
prob: https://hack.codingblocks.com/app/contests/2022/211/problem
approach:
I’m trying to go towards the left and right side of the current bar and see if I can add them to my answer or not and I’m doing this procedure for every element and at the end I’m returning which ever answer is the largest
getting seg fault