Discount, Buy 3 get 2 free. Chepest free

I saw emre was doing it in the beta group, but I couldn’t find the way he did it?

Id like to implement this?

Cheers

Matt