Capital One interview question

Very easy coding and behavioural questions