a rod of length l and mass m starts from rest with a lean angle theta = 5. it falls unster the influence of gravity. the wall and floor are smooth.

a rod of length l and mass m starts from rest with a lean angle theta = 5. it falls unster the influence of gravity. the wall and floor are smooth. for what value of the angle theta will the rod first lose contact with either the wall or the flor?