ZS Associates Interview Question

slice cake in 8 equal pieces in 3 slices.