Increasing decreasing sequnce

what is error sir , only one correct answer is giving

Hi @vikashkmr519,
Here is the correct code and the corrections are commented . https://ide.codingblocks.com/s/158458