Out of one`s element

In a situation where one does not belong or fit in.

The teacher is out of his element teaching the computer course. He does not know anything about computers.