In Time Tec Interview Question

What is difference between abstraction and encapsulation? Another question was based on a binary search algorithm.