Cognizant interview question

Custom directive