Forio Interview Question

javascript algorithm