Added solution for PE003 to C, Java and Python