Description  Planet X is colonized by a robot. To eliminate…