GVA Lighting interview question

Write a swap function and main function to execute the swap function, in C++.