Pregunta de entrevista de Tesla

Basic leetcode mediums and algorithm questions