CoinTracker interview question

Why did you code the take-home this way?