August Home interview question

Maximum Value of a Stack