Added solution for tutorial 2 coding question