Pergunta de entrevista da empresa Google

They copy paste the question into their internal interviewing platform and you start coding - no test cases are provided so running the code is not an option. It seems like they prioritize how well you can talk through your solution.