Pregunta de entrevista de Reddit

A basic leetcode-easy style question. Absolutely nothing difficult whatsoever.