IBM Interview Question

based on real time scenarios