A boy is asked to put in a basket one mango when ordered βOne', one orange when ordered βTwo', one apple when ordered βThreeβ and is asked to take out from the basket one mango and an orange when ordered βFourβ. A sequence of orders is given as 12332142314223314113234.
How many total fruits will be in the basket at the end of the above order sequence?
π₯ Video solution / Text Solution of this question is given below: