Practice : solving pick fruits problem by top-down and bottom-up methods