Pregunta de entrevista de RetailOn

2 basic programming questions - Array and string based