Aurochs Software interview question

In aptitude 2 question asked.