Implemented a solution to find out the maximum container area within an array