← Mastercard questions
CodingEasyReported in a candidate post, Jul 2025

Sum of even numbers between x and y

Filed under Mastercard

Given two numbers x and y, return the sum of all even numbers between them. Assume the range is inclusive and that x may be greater than y; state this assumption to the interviewer.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Mastercard questions

Collected from public candidate posts and coding forums. Updated Nov 2026.