Gallagher interview question

In aptitude fully grammer