Crate and Barrel interview question

Given a string array N