Pergunta de entrevista da empresa Capital One

Solve these 4 problems. You have 1 hour.