we're not asking programming puzzles. i described our process above. struggling to define a function and basic code comprehension (e.g. tracing a for loop that traverses a json object in candidate's preferred language) is a strong signal that candidate is not a good fit a mid to senior level for us. If it was a junior level position, sure you can learn on the job.