eBay Interview Question

NDA - LC easy / array transformation