Added solution for grph