Bloomerg interview question

How would you find the greatest integer In an array? negatives, positives, invalid chars should be accounted for.