Cyntexa interview question

first question is jumbled number pattern printing program array rotation array sorting string sub string factors