AbaGada interview question

Extracting data from rakes, math quize