Vection Interview Question

Basic coding exercise very close to classic algorithms