GHL interview question

Double entry