Nokia interview question

3. split the string into n equal part