F5 Interview Question

basic algorithmic questions, nothing complicated