EPAM Systems interview question

smart way to pad n-spaces to given string, without using for loop