Increasing Decreasing Seq

Hi ,

Not sure what’s wrong with the code
https://ide.codingblocks.com/s/72094

This is working fine in my jupyter notebook

This is resolved now