Lawrence Livermore National Laboratory Interview Question

Convert a base 10 integer to a string representation of base 7, under the constraints that the input integer can be from -10e7 to 10e7.