Capgemini interview question

Two program Programs on string and array