// Function to swap the values of two variables void swap( int & first, int & second ) { int temp; temp = first; first = second; second = temp; }