- The output should contain a single line with a single word
- The word should be YES if it is possible reach the end configuration from the start configuration in at most K moves and NO otherwise