PureSoftware interview question

Easy but all coding questions only. Basic coding questions like reverse an string, remove duplicate from array.