TORC Robotics interview question

Implement line equation in c++