Implement 3 stacks in 1 list

hard