implemented two stacks in 3 mins