Adds solution for P3 Q4