Welcome to the Ranch
Whether that is Java® or C# doesn't make much difference for the first stage, because you want to do that with your computer
turned off. Write down what you are going to do and what sort of formula you need. Once you have got that written down, you should find it easy to convert to code. Get some paper a pencil and an eraser, so you are using carbon‑based technologies rather than silicon. The eraser has carbon in, too, and you will want a big one because you will doubtless have lots of evidence to destroy
