Pergunta de entrevista da empresa Rover.com

Naive questions like how to parse empty string and return 0(really?, so laughable...), parse int string to return an int. Just wonder how this type of super simple questions will help judge the technical competence of a candidate and help them find someone who can write solid code...A real eye-opener for me.