Added solution for first 3 questions of pointers