A robot moves in a plane starting from the origin point[0,0].. The robot can move toward UP, DOWN, LEFT, RIGHT. The trace of robot movements is as given following:
The numbers after directions are steps. Write a program to compute the distance current position after sequence of movements.