Subsequence of an array(all elements are positive) with non consecutive elements to give maximum sum.

Yeah, i wanted to point the same thing out but didn’t have enough reputation points to comment there.
Thanks for your reply though. Really appreciate that.