Capgemini Interview Question

In technical interview they asked to write swapping program in c and asked some questions on core (electrical) like transformer types and different applications based on their types