Code Wars IV - Directions Reduction - Solving the kata [ENG-ESP]