Broadridge Interview Question

dsa- easy level (arrays and strings).