Pergunta de entrevista da empresa Yahoo

some basic Javascript coding and leetcode