STJ Electronics interview question

Basics