IBM interview question

Case-Solving