Samsung Electronics interview question

Data structure, algorithms, optimization, and analysis