Wipro interview question

logical questions