FNZ interview question

Q: Open VS and write this simple functionality (basic OOP)