1E Interview Question

basic question related to optimization techniques and system design