EXL Service Interview Question

Maths puzzles, coding