Honda Interview Question

If a robot is not performing the task assigned, how will you debug it