Deloitte interview question

String based coding challenge