Drop Interview Question

Basic Javascript/algorithms