Visa Inc. interview question

I was given a codality test with 4 questions.