LTM Limited interview question

Asked to code Rest Api with integrating string