I have tried multiple times but getting wrong answer. I have also tested with multiple inputs. Please help me to get CA;
below is link of my code
STPAR
Try this:
5 5 3 2 1 4 0
Answer should be yes.