Elavon Interview Question

Basic coding question (very easy)