Deloitte interview question

2 string questions and 1 array based