Paxcom interview question

divide the cake into pieces