Tractive interview question

Code and schematic analysis