Visa Inc. interview question

Coding question was Boyer Moore voting algorithm