IOLBENCH: Benchmarking LLMs on Linguistic Reasoning