adding binary search for finding duplicates

problem: given number from 1 to N in a array and
only one number is repeated. Find that number.

Signed-off-by: anish kumar <anish198519851985@gmail.com>