Google interview question

Logic Riddle Question