No submissions yet

Submit your solution to display here.

Please login/signup to submit your solution.
Loading...

Input

5 1 2 3 4 5

Expected Output

15