[Algo2] Added solution for pa2 q2.