Added solution for P10194.