First Student Interview Question

reverse string in js and service now platform