Publicis Sapient interview question

Many puzzles