Pregunta de entrevista de Capital One

Leetcode easy for technical Basic case question