Cognizant interview question

Logic question. One puzzle also