Pregunta de entrevista de Meta

Problems regarding powerset and string operations