Pregunta de entrevista de Intact

Simple leetcode question 1 and some basic statistics.