The efficient solution

Specification