Solution
6
7
3
10
1