*After providing a solution the interviewer had no idea existed*, Can you do it any other way?
Sigiloso
Why? Because the interviewer was not aware that this solution existed and my solution did not match the solution the interviewer had in his mind. I tried for this as well and came very close. Not to mention, the solution I provided was very idiomatic Python and worked perfectly.