Deloitte Interview Question

2 string questions and 1 array based