bsr j aurait besoin d aide pour cette exercice de maths

Bonsoir,
0 +6 +8 +5+6+7+4 => 36 étages
0->+6: 6
6 -<-2 : 8
-2 ->+3 : 5
3 -> -3 : 6
-3 ->4 : 7
4-> 0 : 4