- name: sample1
  in: |
    3
    1 1
  out: |
    4

- name: sample2
  in: |
    5
    3 1 2 1
  out: |
    332748122
