FDM Group Interview Question

How to sort an array? How to swap a variable? What is primary key? Why QA?