Add another C++ solution

Avoids allocations!