STMicroelectronics interview question

A recursion program