Sun Life interview question

String ques longest substring in a word