TORC Robotics Interview Question

Implement line equation in c++