highlevel interview question

Problem Solving with arrays & strings.