I am trying to create a fitness function for the OneMax problem using GA and I am currently stuck on how to write the fitness function to complete this , I am currently using R