you give array integer distanceyou start point 00 xy plane distance0 meter north distance1 meter west distance2 meter south distance3 meter east in word direction change counterclockwisereturn true path cross false Example 1input distance 2112output trueExample 2input distance 1234output falseexample 3input distance 1111output true Constraints1 distancelength 1051 distancei 105