In this problem we see the output is different

Describe your issue

Screenshot

Additional info


in question given output are 5,4,10.
this output is not true .

Hey, this problem can have multiple correct answers. So it’s okay if your answer is different from the sample test case output.

did you solve this problem .your anwser is same to the sample test case output.