Pregunta de entrevista de Meta

coding challenge, then some basic phone screens