LG Electronics interview question

A few puzzles