Creating a set containing Fibonacci numbers
let hash = new Set ( ) ; createHash ( hash , max_val ) ; let left = Array . from ( { length : n } , ( _ , i ) => 0 ) ; let right = Array . from ( { length : n } , ( _ , i ) => 0 ) ; let fibcount = 0 , res = - 1 ;