Challenge 2: Language Processing with Transducer

Problem statement

Write a transducer that performs the following operations in the order specified below:

  • Convert all words in a list to their uppercase versions.
  • Filter out all words with four or fewer characters.
  • Separate all characters in each word with an underscore.


Write all your logic inside a function named TransducerChallenge(). The function must be able to take an array of words as a parameter and return the resulting array after performing all stated operations.

Sample inputs and outputs

Sample input 1


Expected output


Sample input 2


Expected output


Get hands-on with 1200+ tech skills courses.