Pregunta de entrevista de IBM

Case question and coding question