Index Exchange Interview Question

Technical wise a coding question to do