Added P3

Added a solution for P3.
Added P3

Added a solution to P3.