Deloitte Interview Question

String based coding challenge