Infosys Interview Question

solve the puzzle asked in the aptitude test