Samsung Electronics interview question

Technical