RetailOn Interview Question

2 basic programming questions - Array and string based