Synechron interview question

how to create your own final class