FinaTel Interview Question

Binary search in Java and remove duplicate in string