Index Exchange interview question

Technical wise a coding question to do