Solved To Avoid Stack Overflow The Stack Algorithm Should

Solved To Avoid Stack Overflow The Stack Algorithm Should