It can be that simple, but there are plenty of times where the easy route doesn’t work. Sure it’s solvable with 5 minutes of googling and applying the top stack overflow solution, but of course the interview is not the time for that. And there are many other aspects that can throw you off and give the unjust appearance of incompetence.