Capgemini interview question

How to solve Ds questions