Arduino sketch from truth table

would be

bool out11 = S1 and S3 and S4 and not S6;

I'm just assuming that '--' is a "don't care" state because you didn't answer.