Toberto

Can you give the most optimal script?
Puzzle
Play in browser
It is now your turn to become a shopkeeper.
Strategy