Hired Interview Question

General coding with algorithms.