Pergunta de entrevista da empresa INRIX

//get max depth reached in a stack after a series of operations represented by the array. //Example below // {1,1,0,1,1,1,0,0,1,0,1} // 1=push // 0=pop // max depth=4