Classic interview question C