Synamedia Interview Question

DSA question on Array and String