Ultimate Infosoft interview question

make a function to swap two value of any type ?