What is wrong in this cd?


#1

def solve(self, A):
A.sort()
rev=A[::-1]
return sum(rev[:3])


#2

You shouldnt be sorting the array as you have to keep track of the indices order also.