Can Large Language Models Code Like a Linguist?: A Case Study in Low Resource Sound Law Induction