There is no template for a method in this question

where do I write the code please in main?