Epic interview question

Don't difficult to code.