Samsung Electronics interview question

technical question