Need better understanding of the problem statement


#1

What will be the output if 3 2 1? In expected outcome box it shows answer as 4. but according to question-answer should be 3 2 1 that is 6.


#2

In see expected output, type size of array as well, for 3 2 1 input should be like 3 3 2 1 and its output is 6