Pregunta de entrevista de Forcepoint

just simple questions about algorithm.