SAN Healthsoft interview question

Basic to defth