Landis+Gyr interview question

C programming