RTX interview question

basice equations