Moveworks Interview Question

The coding interview was a hangman problem