Graph on an Array

Please provide some important cases w.r.t question

//