Vertica Interview Question

Use Javascript to build a list