Invert Colors:function start(){while(frontIsClear()){if (colorIs(Color.red)) {paint(Color.blue);move();} else { paint(Color.red);move();} } if (colorIs(Color.red)) {paint(Color.blue);} else { paint(Color.red);} } Fetch:/**This code represents Karel fetching a ball and returning it to the starting point.*/function start() {turnLeft();move4Times();turnRight();moveTwice();takeBall();turnAround();moveTwice();turnLeft();move4Times();putBall();turnLeft();}function move4Times(){move();move();move();