Explanation: It used to be possible to make a smart mall that could build pretty much any number of intermediaries with just one constant combinator and one…