Unity Interview Question

Given a number represented as a string and base 10. Convert it into base 7.