On the lower and upper solutions method for the problem of elastic beam with hinged ends