NTT DATA interview question

some scenario is explained and asked me to code in c.