Correct Answer - Option 4 : 2
Given,
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
The boy asked to take out one mango and orange from the basket when ordered 'Four.'
A sequence of orders is given as 12332142314223314113234
So,
Orders
|
1
|
2
|
3
|
3
|
2
|
1
|
4
|
Fruits in the Basket
|
1 Mango
|
1 Orange
|
1 Apple
|
1 Apple
|
1 Orange
|
1 Mango
|
Total fruits
Mango = 2
Orange = 2
Apple = 2
Take out 1 mango and 1 orange
Remaining fruits
Mango = 1
Orange = 1
Apple = 2
|
Orders
|
2
|
3
|
1
|
4
|
Fruits in the Basket
|
1 Orange
|
1 Apple
|
1 Mango
|
Total fruits
Mango = 2
Orange = 2
Apple = 3
Take out 1 mango and 1 orange
Remaining fruits
Mango = 1
Orange = 1
Apple = 3
|
Orders
|
2
|
2
|
3
|
3
|
1
|
4
|
Fruits in the Basket
|
1 Orange
|
1 Orange
|
1 Apple
|
1 Apple
|
1 Mango
|
Total fruits
Mango = 2
Orange = 3
Apple = 5
Take out 1 mango and 1 orange
Remaining fruits
Mango = 1
Orange = 2
Apple = 5
|
Orders
|
1
|
1
|
3
|
2
|
3
|
4
|
Fruits in the Basket
|
1 Mango
|
1 Mango
|
1 Apple
|
1 Orange
|
1 Apple
|
Total fruits
Mango = 3
Orange = 3
Apple = 7
Take out 1 mango and 1 orange
Remaining fruits
Mango = 2
Orange = 2
Apple = 7
|
The total fruits in the basket at the end are: Mango = 2 Orange = 2 Apple = 7
Total oranges were in the basket at the end of the above sequence are 2.
Hence, the correct answer is 2.