Simply Hired Interview Question

open ended problem