The correct option is B Rama
Rama, the hero of Ramayana, is believed to have built the Lingam of sand and is believed to have worshipped it. He had requested Lord Shiva to reside there for the benefit of mankind and Lord Shiva turned himself into a Lingam, which is now the temple deity.