Question d’entretien chez Teradata

Q1- Swap two variables without using third variable? Q2- You have two integers so when one integer is passed the function outputs the other.... no use of if statements or loops? Q3- What is indexing? Q4- What is difference between unique and primary key? Q5- What is the Time complexity of binary search tree? Q6- Three boxes labeled as red, blue and mixed. These labels are incorrect.one box contains red balls and another box contains blue balls and remaining one box contains both red and blue balls. Pickup one ball from any box(u should pickup ball only once) and name the correct labels.