Pregunta de entrevista de Blend

Went through previous experience and simple algorithm from leetcode.