initially there is a robot at position 0 0 given a sequence of its moves judge if this robot makes a circle which means it moves back to the original place the move sequence is represented by a string and each move is represent by a character the valid robot moves are r right l left u up and d down the output should be true or false representing whether the robot makes a circle example 1 input ud output true example 2 input ll output false
def judge_circle(moves):
    dict_moves = {
        'U' : 0,
        'D' : 0,
        'R' : 0,
        'L' : 0
    }
    for char in moves:
        dict_moves[char] = dict_moves[char] + 1
    return dict_moves['L'] == dict_moves['R'] and dict_moves['U'] == dict_moves['D']