Biz2Credit Interview Question

Basic Angular Question. Reverse of string with for loop