Software AG interview question

logical Reasoning