Microsoft Interview Question

Write a robot motor controller from scratch.