Cognizant interview question

Write an algorithm on divide and conquer .