Java Rule Engine Python Tutorial Gfg 160 Challenge