CommerceIQ Interview Question

Problems in Array and strings