A monkey randomly pressing keys on a typewriter for an infinite amount of time would eventually type out the complete…