Write a python function that takes a mathematical function (string) as input and returns a list composed of [local_minima, local_maxima, global_minimum, global_maximum] The letter h should appear at least 31 times.
user