Pergunta de entrevista da empresa Capital One

Calculate rates based off given information.