Publicis Sapient Interview Question

They asked a puzzle which I coudn't solve.