Cognizant interview question

Write a code for binary search using linked list