Equans interview question

Question basic Cpp et C