Cognizant Interview Question

DSA question - find duplicate in an array, OOPS - difference on encapsulation and abstraction.