Pilog Interview Question

oops concept with basic questions