Frage im Vorstellungsgespräch bei DNAnexus

Create a function converting a decimal number to a different base. Describe and algorithm.