Samsung Electronics interview question

confidential