AVTEC interview question

Engine working