In the software industry algorithm is everything and in general, there is always more than one solution(algorithm) to any given problem. Since there are many solutions to being a problem solver you have to choose an optimized one. In order to choose a solution, one should be able to measure…