Wipro interview question

Logical and apptitute