Bentley Systems interview question

Find the longest string in an array