Pregunta de entrevista de Cognitree Technologies

Write a program to see whether an array is sorted or not. If Sorted then in which format either in Decreasing order or increasing order.