In-Class 1: Suppose AlgorithmA is the name of a method that contains the algorithm you wantto measure. Use the following sample code to prepare AlgorithmA.Within the main method of this program, you can call AlgorithmA with different values of npassed in to see how the runtime increases relative to the amount of numbers to sum. Try usingthe values 10, 100, 1000, and 10000 with AlgorithmA, and print the runtime for each call to themethod. This program will be submitted as your In-Class Assignment 1.