Brillio Interview Question

What is encapsulation and abstraction,write a code for reversing of string,write a code to sort an array of numbers write code other than bubble sort,write a table consist of primary key and secondary key of your project