IBM interview question

took a long communications round