Micron Technology interview question

Use C to write program