class Solution: def judgeCircle(self, moves: str) -> bool: h=moves.count('R')-moves.count('L') v=moves.count('U')-moves.count('D') return (h==0 and v==0)