Infosys interview question

Coding Questions were asked in the test which were like compitative programming type