Histogram-----Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars

Question link : https://hack.codingblocks.com/contests/c/511/338
My Solution : https://ide.codingblocks.com/s/39882

Output is correct but test cases are displaying wrong answer.

Hey Unique, your code is correct just update it for the larger constraints as given in the question.