Amazon Interview Question

Making 3 dynamically changing stacks in an array where each stack can start filling the other stacks as well