LinkedIn Interview Question

Max Stack variation with time and space complexity