Softex Interview Question

Given situations