Lenovo interview question

previous project tech question, how to solve the difficult things