Solution
5 5 4 4 2
5 3 4 1 2
5 3 4 1 2
3 3 1 1 2