Pregunta de entrevista de Linker Networks

phone: javascript basic know how Network knowledge, two question algorithm solve method my mind.