Pregunta de entrevista de Capital One

Case with some data and math calculation.