Mphasis Interview Question

Asked about how to swap two numbers and oops concepts