text: /*Your job is to find the gravitational force between two spherical objects (obj1 , obj2).
  
  input
  Two arrays are given :
  
  arr_val (value array), consists of 3 elements
  1st element : mass of obj 1
  2nd element : mass of obj 2
  3rd element : distance between their centers
  arr_unit (unit array), consists of 3 elements
  1st element : unit for mass of obj 1
  2nd element : unit for mass of obj 2
  3rd element : unit for distance between their centers
  mass units are :
  
  kilogram (kg)
  gram (g)
  milligram (mg)
  microgram (μg)
  pound (lb)
  distance units are :
  
  meter (m)
  centimeter (cm)
  millimeter (mm)
  micrometer (μm)
  feet (ft)
  Note
  value of G = 6.67 × 10−11 N⋅kg−2⋅m2
  
  1 ft = 0.3048 m
  
  1 lb = 0.453592 kg
  
  return value must be Newton for force (obviously)
  
  μ copy this from here to use it in your solution*/
  
  solution = (arr_val, arr_unit) => {
    //I need to check the arrays and correct the units
    //For the 3 values, there can be different cases. 
    //Final units have to be kg and m respectively
    
    let G = 6.67 * 10**(-11)
    
    
    //FOR
    //SWITCH 
    for (let i=0; i < arr_val.length; i++){
      switch(arr_unit[i]){
          case "g":
            arr_val[i] = arr_val[i]/1000
          break;
          case "mg":
            arr_val[i] = arr_val[i]/1000000
          break;
          case "μg":
            arr_val[i] = arr_val[i]/1000000000
          break;
          case "lb":
            arr_val[i] = arr_val[i]*2.20462262185
          break;
          case "cm":
            arr_val[i] = arr_val[i]/100
          break;
          case "mm":
            arr_val[i] = arr_val[i]/1000
          break;
          case "μm":
            arr_val[i] = arr_val[i]/1000000
          break;
          case "ft":
            arr_val[i] = arr_val[i]*3.28084
          break;
      }
    }
    
    return (arr_val[0]*arr_val[1])/((arr_val[2])*(arr_val[2]))*G
  };
  