Publicis Sapient interview question

Few basic puzzles