title: Find Index Given Fibonacci Number Constant Time 1
signature: def findIndexGivenFibonacciNumberConstantTime1(n: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(n: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        20, 
        8    
      )}")   
  
  
      println(s"TEST-1...${driver(
        95, 
        11    
      )}")   
  
  
      println(s"TEST-2...${driver(
        39, 
        9    
      )}")   
  
  
      println(s"TEST-3...${driver(
        21, 
        8    
      )}")   
  
  
      println(s"TEST-4...${driver(
        94, 
        11    
      )}")   
  
  
      println(s"TEST-5...${driver(
        79, 
        11    
      )}")   
  
  
      println(s"TEST-6...${driver(
        56, 
        10    
      )}")   
  
  
      println(s"TEST-7...${driver(
        62, 
        10    
      )}")   
  
  
      println(s"TEST-8...${driver(
        23, 
        8    
      )}")   
  
  
      println(s"TEST-9...${driver(
        3, 
        4    
      )}")   
  
  }
  
source_py: def find_index_given_fibonacci_number_constant_time_1(n):
      fibo = ((2.078087 * math.log(n)) + 1.672276)
      return round(fibo)
source_cpp: int find_index_given_fibonacci_number_constant_time_1(int n) {
    float fibo = 2.078087 * log ( n ) + 1.672276;
    return round ( fibo );
  }