Maximum length biotonic subarray

My solution is being accepted on gfg but not here for the same question. Why?

@Paras-Kaushik-446920412565840 hey paras please save your code through ide.codingblocks.com
And share it here