Sun Life Interview Question

String ques longest substring in a word