Publicis Sapient Interview Question

some puzzles