Karthik's submission of Graph on an Array | CodeChef