Clairvoyant Interview Question

Logical reasoning. Java OOPS Pattern programming