KryptoMind interview question

how can you optimize the contracts ?