Pregunta de entrevista de Capital One

Regular algorithm questions that are not too difficult