Corning interview question

Q: Write pseudo-code that will give the sum of an array of integers. Q: Write code (VB, C#, C++ or Java or Python) that will swap two integers (A, B) using a function call.