Safe Horizon interview question

Difficult challenges