Pregunta de entrevista de Capital One

leetcode type questions, pretty average