Tech Mahindra Interview Question

Explain bubble sort and binary search with explanations