stacks solution one