Given a list ,for example 1 2 3 4 5 print like 5 4 4 3 3 2 2 1 1 0

Given a list ,for example 1 2 3 4 5 print like 5 4 4 3 3 2 2 1 1 0