From what I can tell, you're manually typing in the input. Well this will work for the test case, (Although, like matt said, you're returning a list with just 'Mark') it would be best practice to have it iterate through the input, and return a list of all 4 letter names in that list.
From what I can tell, you're manually typing in the input. Well this will work for the test case, (Although, like matt said, you're returning a list with just 'Mark') it would be best practice to have it iterate through the input, and return a list of all 4 letter names in that list.
if I understand your code you return on the first iteration returning an array containing just the item 'Mark'?
This comment is hidden because it contains spoiler information about the solution