The Sojourn Time Problem for a $$p$$-Adic Random Walk and its Applications