Help me in solving DPM1_2 problem

My issue

Why can’t we take {1,4,6,9,10} in this question?

Learning course: Dynamic programming
Problem Link: CodeChef: Practical coding for everyone