Sharing chocolate and avoid having a rotten piece


Hint 1


Hint 2


Hint 3


Hint 4


Solution