Pergunta de entrevista da empresa Infosys

solve the puzzle asked in the aptitude test