Pregunta de entrevista de Capital One

Asked easy to medium leetcode questions.