Bug in "Stock Exchange Losses puzzle"

there is bug in first test of task “Stock Exchange Losses puzzle”
in input n==5 but array has 6 numbers