MFour Interview Question

Basic syntax in JAVA and coding approaches.