Simple Logic IT Interview Question

Oop , basic coding, aptitude