intially pizzas = 0
for 1/4 : we take 1 pizza,so pizzas = 1.
remaining slice = 3/4.
for 1/2 : we can use the 3/4 slice so,no. of pizzas does not change.
Thus,remaining slice = 1/4. pizzas =1 .
for 3/4 : we have to take a new pizza . Thus , pizzas = 2.
Now we have two 1/4 slices.
for 1/2 : we can’t use the 1/4 slices , so a new pizza is taken.Now,pizzas = 3.
now we have two 1/4 slices and one 1/2 slice.
A whole pizza is reserved for Abotrika.So,pizzas = 4.
Hence answer = 4.Is the logic correct ?