Cognizant Interview Question

Write an algorithm on divide and conquer .