Comcast interview question

Max of Array square, String regex