Synechron interview question

Logical Programs in java